package com.punai.customer.mapper;

import com.punai.common.core.mapper.CommonMapper;
import com.punai.customer.domain.CusLinkFeature;
import com.punai.customer.domain.bo.CusLinkFeatureBo;
import com.punai.gk.domain.vo.SimplifyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 特征关联Mapper接口
 *
 * @author zxw
 * @date 2022-12-04
 */
public interface CusLinkFeatureMapper extends CommonMapper<CusLinkFeature>
{
    void copyLinkFeature(@Param("companyId") Long companyId, @Param("type") String type);
    void clearLinkFeature(@Param("companyId") Long companyId, @Param("type") String type);

    List<CusLinkFeatureBo> selectLinkFeatureByItemIds(@Param("companyId") Long companyId, @Param("itemIds") List<String> itemIds);

    List<SimplifyVo> selectLinkFeature(@Param("companyId") Long companyId,@Param("itemIds") List<String> itemIds);

    int deleteByItemIds(@Param("companyId") Long companyId,@Param("itemIds") List<String> itemIds);

    List<String> selectFeatureIdByGxId(@Param("companyId") Long companyId,@Param("itemId") String itemId);
}
